package com.mes.md.service.impl;

import com.mes.md.mapper.WorkstationToolMapper;
import com.mes.md.service.WorkstationToolService;
import com.mes.pojo.md.MdWorkstationTool;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author hitsune
 * @Company kafu chino
 * @Description
 * @Time 2024/10/26 14:12
 */

@Service
public class WorkstationToolServiceImpl implements WorkstationToolService {
    @Autowired
    private WorkstationToolMapper workstationToolMapper;


    @Override
    public List<MdWorkstationTool> queryTools(Long workstationId) {
        return workstationToolMapper.queryTools(workstationId);
    }

    @Override
    public Integer deleteTool(Long toolTypeId) {
        return workstationToolMapper.deleteTool(toolTypeId);
    }

    @Override
    public Integer insertTool(MdWorkstationTool workstationTool) {
        return workstationToolMapper.insertTool(workstationTool);
    }
}
